package com.antdesignbackend.backend.situationReport.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;

/**
 * 动物防疫条件和防疫制度执行情况报备
 *
 * @author 林宇杰
 * @email situationReport
 * @date 2020-08-31 10:28:17
 */

@Data
@TableName(value = "t_situationreport")
public class SituationReport implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(value = "Id",type = IdType.AUTO)
	private Integer id;

	//企业ID
	@TableField(value = "Eid")
	private Integer eid;
	//创建人用户ID
	@TableField(value = "Uid")
	private Integer uid;
	//报备年份
	@TableField(value = "ReportYear")
	@DateTimeFormat(pattern="yyyy")
	@JsonFormat(pattern = "yyyy")
	private Date reportYear;
	//内容
	@TableField(value = "Content")
	private String content;
	//创建时间
	@TableField(value = "CreateTime")
	private Date createTime;
	//附件名称
	@TableField(value = "Enclosure")
	private String enclosure;
}
